package com.sojson.project.sys.menu.entity.bo;

import com.sojson.base.impl.Base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 路由显示信息
 * 
 * @author liu
 * @date 2021-05-13
 */
@Data
@ApiModel("路由显示信息")
public class MetaBo extends Base {

    /** 设置该路由在侧边栏和面包屑中展示的名字 */
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("设置该路由在侧边栏和面包屑中展示的名字")
    private String title;
    /** 设置该路由的图标,对应路径src/assets/icons/svg */
    @ApiModelProperty("设置该路由的图标,对应路径src/assets/icons/svg")
    private String icon;
    /** 设置为true，则不会被 <keep-alive>缓存 */
    @ApiModelProperty("设置为true，则不会被 <keep-alive>缓存")
    private boolean noCache;

    public MetaBo() {}

    public MetaBo(String title, String icon) {
        this.title = title;
        this.icon = icon;
    }

    public MetaBo(String title, String icon, boolean noCache) {
        this.title = title;
        this.icon = icon;
        this.noCache = noCache;
    }

}